//package net.zjitc.filter;
//
//import javax.servlet.*;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpSession;
//import java.io.IOException;
//
///**
// * Created by guo on 2018/1/3.
// */
//@WebFilter(filterName = "AllFilter",urlPatterns = "/...")
//public class AllFilter implements Filter {
//    public void destroy() {
//    }
//
//    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
//        HttpServletRequest request=(HttpServletRequest) req;
//        HttpSession session = request.getSession();
////        Object admin = session.getAttribute("admin");
////        if(admin==null)
////        {
////            req.setAttribute("msg","?????");
////            req.getRequestDispatcher("/admin/login.jsp").forward(req,resp);
////        }else {
////            chain.doFilter(req, resp);
////        }
//    }
//
//    public void init(FilterConfig config) throws ServletException {
//
//    }
//
//}
